package com.service.serviceImpl;

import com.dao.userMapper;
import com.pojo.User;
import com.service.userService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("lidongpService")
public class userServiceImpl implements userService {
    @Autowired
    private userMapper lidongpMapper;


    @Override
    public int addUser(User user) {
        return lidongpMapper.addUser(user);
    }

    @Override
    public int delUserByID(int id) {
        return lidongpMapper.delUserByID(id);
    }

    @Override
    public int updateUser(User user) {
        return lidongpMapper.updateUser(user);
    }

    @Override
    public User queryUserByID(int id) {
        return lidongpMapper.queryUserByID(id);
    }

    @Override
    public List<User> queryAllUser() {
        return lidongpMapper.queryAllUser();
    }
}
